import { FlowNode } from './flowNode';
import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "workflownodeitem" })
export class WorkflowNodeItem extends EntityObjectType<WorkflowNodeItem>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        IsIndex: true
    })
    workflowId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        IsIndex: true
    })
    flowNodeId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        NotAllowNULL: true,
        IsIndex: true
    })
    orgId: string;

    @Define.Column({
        DataType: Define.DataType.INT
    })
    index: number;

    flowNode: FlowNode;
}